
#ifndef __XB_DEV_H__
#define __XB_DEV_H__

/* ------------------------------------------------------------------------- */

#include <core.h>

/* ------------------------------------------------------------------------- */

capi void fastcall dev_init(void);

capi void fastcall set_mcpx_map(bool fix);

capi uint32 fastcall io_read(uint16 port, size_t size);
capi void fastcall io_write(uint16 port, uint32 data, size_t size);

capi uint32 fastcall memory_read(uint32 addr, size_t size);
capi void fastcall memory_write(uint32 addr, uint32 data, size_t size);

/* ------------------------------------------------------------------------- */

#endif
